<title>Thông Tin Sản Phẩm - Admin Control Panel - Origami Shop Online | Origamishop.net</title>
<?php
	if (isset($_REQUEST["sp_id"]) == false)
	{
		header("location:index.php");
	}
	$id = $_REQUEST["sp_id"];
	echo '
<div class="div_music_main">
	<div class="div_music_menu1">
    <hr size="1" width="94%" color="lightgrey">
    <strong>Chi Tiết Sản Phẩm</strong>
    <hr size="1" width="94%" color="lightgrey">
    </div>
	';	
	$strSQL = "SELECT * FROM sp
	where sp_id = $id";
	$result = DataProvider::ExecuteQuery($strSQL);
	while($dong = mysql_fetch_array($result))
	{
	echo '
<div id="div_form" align="right">
    <form name="upsanpham" method="post" action="'.$host["l_link"].'home.php?typ=admin&act=exspview">
	<div class="div_top" align="center">Thông tin sản phẩm</div>
	<div class="blanktop"></div>
    <div class="div_cot1" align="right">Tên sản phẩm: </div>
    <div class="div_cot2"><input name="tensp" type="text" class="input" value="'.$dong["sp_ten"].'"/></div>
	<div class="blankbottom"></div>
    <div class="div_cot1" align="right">Tên khác: </div>
    <div class="div_cot2"><input name="tenspjp" type="text" class="input" value="'.$dong["sp_tenjp"].'"/></div>
	<div class="blankbottom"></div>
    <div class="div_cot1" align="right">Giá sản phẩm: </div>
    <div class="div_cot2"><input name="giasp" type="text" class="input" value="'.$dong["sp_gia"].'"/></div>
    <div class="div_cot1" align="right">Giảm giá sản phẩm: </div>
    <div class="div_cot2"><input name="giamgiasp" type="text" class="input" value="'.$dong["sp_sall"].'"/></div>
	<div class="blankbottom"></div>
    <div class="div_cot1" align="right">Thời gian xếp: </div>
    <div class="div_cot2"><input name="tgxep" type="text" class="input" value="'.$dong["sp_time"].'"/></div>
	<div class="blankbottom"></div>
    <div class="div_cot1" align="right">Kích thước mẫu: </div>
    <div class="div_cot2"><input name="ktmau" type="text" class="input"  value="'.$dong["sp_size"].'"/></div>
	<div class="blankbottom"></div>
    <div class="div_cot1" align="right">Số lượng tồn: </div>
    <div class="div_cot2"><input name="ton" type="text" class="input" value="'.$dong["sp_ton"].'"/></div>
	<div class="blankbottom"></div>
    <input type="hidden" name="ma" value="'.$id.'"/>
	<input type="submit" value="Lưu Chỉnh Sửa" name="btviewsp" style="margin-right:20px"/>
    </form>
</div>
</div>
';	
	}
?>
